package com.yami.shop.bean.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jjh
 * @since 2023-10-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tz_balance_log")
public class BalanceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 流水号
     */
    private String payNo;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 1增加，-1减少
     */
    private Integer op;

    /**
     * 备注
     */
    private String memo;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 订购流水号
     */
    private String orderNumber;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 失效时间
     */
    private LocalDateTime exp;


}
